﻿#if No_No_no_Error
sing System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bomb : MonoBehaviour
{
	public GameObject _explosion;
	// Use this for initialization
	void Start ()
	{
		
	}
	
	// Update is called once per frame
	void Update ()
	{
		
	}

	void OnTriggerEnter2D (Collider2D col)
	{
		if (col.tag == "Ball") {
			col.GetComponent<Rigidbody2D> ().AddForce (new Vector2 (0.0f, 3000.0f));
			Instantiate (_explosion, transform.position, transform.rotation);
			Destroy (gameObject);
		}
	}
}
#endif